package main

import "sync"

// sync 包
var mu sync.Mutex

// Go 的互斥锁（mutex）
// 加锁  解锁
func main() {
	mu.Lock()
	defer mu.Unlock()
	// The lock is held until we return from the function.
}
